home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Circle.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-16
|
560b
|
37 lines
#include "stdafx.h"
cCircle::cCircle(cCircle **list, cCircle *orig)
{
add_end((cList **)list);
copy(orig);
}
cCircle::cCircle(int _x, int _y, int _radius)
{
set_position(_x, _y);
radius = _radius;
}
cCircle::cCircle(cCircle **list, int _x, int _y, int _radius, char *_label)
{
add_end((cList **)list);
set_position(_x, _y);
radius = _radius;
label = _label;
}
void cCircle::copy(cCircle *orig)
{
ASSERT(orig != 0);
set_position(orig->x, orig->y);
radius = orig->radius;
label = orig->label;
}